<template>
  <div style="padding: 5px 10px">
    <span><i class="el-icon-time" style="margin-right: 20px"></i>{{ value }}</span>
  </div>
</template>

<script>
import moment from "moment";

export default {
  name: "timer",
  data() {
    return {
      value: ''
    }
  },
  created() {
    setInterval(() => {
      this.value = moment().format('YYYY-MM-DD HH:mm:ss')
    }, 1000)
  }
}
</script>

<style scoped>

</style>
